#!/usr/bin/python
# Filename:gui_test.py
import sys

from PyQt4 import QtGui,QtCore

class MyTest(QtGui.QWidget):
    def __init__(self, parent=None):
        QtGui.QWidget.__init__(self,parent)
        self.setFixedSize(200,120)
        self.quit = QtGui.QPushButton("Quit", self)
        self.quit.setGeometry(62,40,75,30)
        self.quit.setFont(QtGui.QFont("Times", 18, QtGui.QFont.Bold))
        self.connect(self.quit, QtCore.SIGNAL("clicked()"), QtGui.qApp, QtCore.SLOT("quit()"))

app = QtGui.QApplication(sys.argv)
widget = MyTest()
widget.show()
sys.exit(app.exec_())
